<template>
  <div style="width: 100%;">
    <p style="margin-top: 10px;">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">后台首页</el-breadcrumb-item>
        <el-breadcrumb-item>订单管理</el-breadcrumb-item>
      </el-breadcrumb>
    </p>
    <el-tabs v-model="activeName" style="widthL100%;">
      <el-tab-pane label="全部" name="first">
        <div style="text-align:left;">
          <el-button type="success">批量导出</el-button>
          <el-button type="primary">批量删除</el-button>
          <el-button>上架</el-button>
          <el-button>下架</el-button>
        </div>
        <el-table
          :data="tableData"
          tooltip-effect="dark"
          style="width: 100%"
          @selection-change="handleSelectionChange"
        >
          <el-table-column type="selection" width="55"></el-table-column>
          <el-table-column label="商品ID" prop="_id"></el-table-column>
          <el-table-column label="商品图片">
            <template slot-scope="scope">
              <img width="50" :src="scope.row.pic" alt />
            </template>
          </el-table-column>
          <el-table-column prop="title" label="商品名称"></el-table-column>
          <el-table-column prop="price" label="商品价钱"></el-table-column>
          <el-table-column label="操作" width="450">
            <template slot-scope="scope">
              <el-button style="margin-top:5px;">基础设置</el-button>
              <el-button style="margin-top:5px;">商品规格</el-button>
              <el-button style="margin-top:5px;">商品属性</el-button>
              <el-button style="margin-top:5px;">媒体设置</el-button>
              <el-button style="margin-top:5px;">商品详情</el-button>
              <el-button style="margin-top:5px;">折扣设置</el-button>
              <el-button style="margin-top:5px;">删除商品</el-button>
            </template>
          </el-table-column>
        </el-table>
        <el-pagination :page-sizes="[8,10,15,20]" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
      </el-tab-pane>
      <el-tab-pane label="待付款" name="second">待付款</el-tab-pane>
      <el-tab-pane label="待发货" name="third">待发货</el-tab-pane>
      <el-tab-pane label="已发货" name="fourth">已发货</el-tab-pane>
      <el-tab-pane label="已收货" name="five">已收货</el-tab-pane>
      <el-tab-pane label="已完成" name="six">已完成</el-tab-pane>
      <el-tab-pane label="已关闭" name="seven">已关闭</el-tab-pane>
      <el-tab-pane label="退款中" name="eight">退款中</el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import { getList } from "../../utils/http";
export default {
  name: "",
  data() {
    return {
      activeName: "first",
      tableData: [],
    };
  },
  methods: {
    handleSelectionChange() {},
    handleSizeChange() {},
    handleCurrentChange() {},
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
};
</script>

<style scoped>
</style>